package com.training.java.core.inheritance;


public class RaceCar extends Car {

	private boolean nitro;
	
	RaceCar(int year, String make, String model, boolean nitro) {
		super(make, model, year);
		this.nitro = nitro;
	}

	public void race() {
		System.out.println("I am racing!");
		acclerate(getMaximumSpeed());
	}
}
